import React, { Component } from 'react'
import {connect} from 'react-redux'

let hotArr = ['常吃','偶尔','不吃'];

class My extends Component {
    render() {
        return (
            <div>
                <div>
                    {hotArr.map(item => <span key={item}>{item}</span>)}
                </div>
                <div>

                </div>
            </div>
        )
    }
}

export default connect((state:any) => {
    return {
        list:state.list
    }
})(My)
